package edu.tjut.tjutcommunity.entity;
/*
定义了一些本项目会使用到的返回常量
 */
public enum HttpCodeConstant {
    SUCCESS(2000,"请求成功"),
    NO_CONTENT(2004,"请求成功,未返回内容"),
    FAILED(4000,"请求失败"),
    UNAUTHORIZED(4001,"未登录的"),
    TOKEN_EXPIRES(4010,"token过期"),
    COLLEGE_TOKEN_EXPIRES(4011,"信息门户token过期"),
    FORBIDDEN(4003,"拒绝执行"),
    HAS_STAR(6001,"已收藏"),
    NO_STAR(6002,"未收藏"),
    METHOD_NOT_ALLOWED(4005,"请求方法被禁止");





    private final Integer value;
    private final String filed;

    HttpCodeConstant(Integer value, String filed) {
        this.value = value;
        this.filed = filed;
    }
    public Integer getValue(){
        return value;
    }
    public String getFiled(){
        return filed;
    }
}
